<?php
/**
 * PHP Template.
 */
class classUsersForms{
    private $_Follow;

    function  __construct() {
        $this->_Follow = new classFollow();
    }

    public function getUserMenu_BeforeLogin(){
        return '
          <span name="UserMenuContainer" id="UserMenuContainer"></span>
          <input type="hidden" name="User_Operation" id="User_Operation">
          <a href="'._URL_INACTIVE_ADDR_.'"
            '.$this->_Follow->getJS(_i18n_user_REGISTERED_USER_LOGIN_).'
            onclick="
              '.$this->_Follow->getClosingJS().'
              document.getElementById(\'User_Operation\').value = \'jsd_UO_ShowLoginForm\';
              classUsers();
            "
          >
            '._i18n_user_LOGIN_.'
          </a>
          <br>
          <a href="'._URL_INACTIVE_ADDR_.'"
            '.$this->_Follow->getJS(_i18n_user_NEW_USER_REGISTRATION_).'
            onclick="
              '.$this->_Follow->getClosingJS().'
              document.getElementById(\'User_Operation\').value = \'jsd_UO_ShowRegisterForm\';
              classUsers();
            "
          >
            '._i18n_user_SIGN_IN_.'
          </a>
        ';
    }
    
    public function getUserMenu_AfterLogin($sNameSurname){
        return '
          <b>'.$sNameSurname.'</b>
          <br>
          <a href="'._URL_INACTIVE_ADDR_.'"
            '.$this->_Follow->getJS(_i18n_user_LIST_OF_MY_ORDERS_).'
            onclick="
              '.$this->_Follow->getClosingJS().'
              classOrdersList();
            "
          >
            '._i18n_user_ORDERS_LIST_.'
          </a>
          <br><br>
          <input type="hidden" name="User_Operation" id="User_Operation">
          <a href="'._URL_INACTIVE_ADDR_.'"
            '.$this->_Follow->getJS(_i18n_user_LOGOUT_MYSELF_).'
            onclick="
                '.$this->_Follow->getClosingJS().'
                document.getElementById(\'User_Operation\').value = \'jsd_UO_LogOut\';
                classUsers();
            "
          >
            '._i18n_user_LOGOUT_.'
          </a>
          <br>
          <a href="'._URL_INACTIVE_ADDR_.'"
            '.$this->_Follow->getJS(_i18n_user_UPDATE_PERSONAL_DATA_ENTERED_DURING_REGISTRATION_).'
            onclick="
              '.$this->_Follow->getClosingJS().'
              document.getElementById(\'User_Operation\').value = \'jsd_UO_ShowUserUpdateForm\';
              classUsers();
            "
          >
            '._i18n_user_EDIT_PERSONAL_DATA_.'
          </a>
          <br>
          <a href="'._URL_INACTIVE_ADDR_.'"
            '.$this->_Follow->getJS(_i18n_user_UPDATE_ACTUAL_PASSWORD_).'
            onclick="
              '.$this->_Follow->getClosingJS().'
              document.getElementById(\'User_Operation\').value = \'jsd_UO_ShowPasswordUpdateForm\';
              classUsers();
            "
          >
            '._i18n_user_CHANGE_PASSWORD_.'
          </a>
        ';
    }
    
    public function getLoginForm(){
        return '
          <center>
          <br>
          <br>
          <input type="hidden" name="User_Operation" id="User_Operation">
          <table class="css_default_table">
            <tr>
              <td>
                '._i18n_user_LOGIN_NAME_.' 
              </td>
              <td>
                <input type="text" name="User_LoginForm_Login" id="User_LoginForm_Login">
              </td>
            </tr>
            <tr>
              <td>
                '._i18n_user_PASSWORD_.'
              </td>
              <td>
                <input type="password" name="User_LoginForm_Passwd" id="User_LoginForm_Passwd">
              </td>
            </tr>
            <tr>
              <td colspan="2" style="text-align:center;">
                <span  name="User_LoginForm_ResultContainer" id="User_LoginForm_ResultContainer"></span>
              </td>
            </tr>
            <tr>
              <td colspan="2" style="text-align:center;">
                  <br>
                  <br>          
                  <a href="'._URL_INACTIVE_ADDR_.'"
                    onclick="
                      document.getElementById(\'User_Operation\').value = \'jsd_UO_CheckLogin\';
                      classUsers();
                    "
                  >
                    '._i18n_user_LOGIN_.'
                  </a>
              </td>
            </tr>  
          </table>
          <br>
          <br>
                '._i18n_user_HAVE_YOU_FORGOTTEN_YOUR_PASSWORD.'
                <a href="'._URL_INACTIVE_ADDR_.'"
                    '.$this->_Follow->getJS(_i18n_user_IT_SHOW_FORM_FOR_SENDING_PASSWORD_TO_REGISTERED_EMAIL_).'
                    onclick="
                      '.$this->_Follow->getClosingJS().'
                      document.getElementById(\'User_Operation\').value = \'jsd_UO_ForgottenPassword_FormShow\';
                      classUsers();
                    "
                  >
                    '._i18n_user_CLICK_HERE.'
                  </a>
          <br>
          <br>
          </center>
        ';
    }
    public function getLoginSuccessfullInfo(){
        return '
          <center>
          <br>
          <br>
          '._i18n_user_YOU_ARE_SUCCESSFULL_LOGGED_.'
          <br>
          '._i18n_user_YOU_CAN_CLOSE_THIS_DIALOG_.'
          <br>
          <br> 
          <input type="hidden" name="User_Operation" id="User_Operation">         
          <a href="'._URL_INACTIVE_ADDR_.'"
            onclick="
              document.getElementById(\'shadow_container\').style.visibility=\'hidden\';
              document.getElementById(\'User_Operation\').value = \'jsd_UO_CloseWindow\';
              classUsers();
              classBasket();
            "
          >
            '._i18n_user_CLOSE_.'
          </a>
          <br>
          <br>
          </center>
        ';
    }
    
    public function getUpdateSuccessfullInfo(){
        return '
          <center>
          <br>
          <br>
          '._i18n_user_DATA_WAS_SUCCESSFULL_CHANGED_.'
          <br>
          '._i18n_user_YOU_CAN_CLOSE_THIS_DIALOG_.'
          <br>
          <br> 
          <input type="hidden" name="User_Operation" id="User_Operation">         
          <a href="'._URL_INACTIVE_ADDR_.'"
            onclick="
              document.getElementById(\'shadow_container\').style.visibility=\'hidden\';
              document.getElementById(\'User_Operation\').value = \'jsd_UO_CloseWindow\';
              classUsers();
            "
          >
            '._i18n_user_CLOSE_.'
          </a>
          <br>
          <br>
          </center>
        ';
    }
    
    
    public function getUpdatePasswordSuccessfullInfo(){
        return '
          <center>
          <br>
          <br>
          '._i18n_user_PASSWORD_WAS_SUCCESSFULL_CHANGED_.' 
          <br>
          '._i18n_user_FROM_NOW_YOU_HAVE_TO_USE_NEW_PASSWORD_FOR_LOGIN_.' 
          <br>
          <br> 
          <input type="hidden" name="User_Operation" id="User_Operation">         
          <a href="'._URL_INACTIVE_ADDR_.'"
            onclick="
              document.getElementById(\'shadow_container\').style.visibility=\'hidden\';
              document.getElementById(\'User_Operation\').value = \'jsd_UO_CloseWindow\';
              classUsers();
            "
          >
            '._i18n_user_CLOSE_.'
          </a>
          <br>
          <br>
          </center>
        ';
    }


    public function getSaveToSessionSuccessfullInfo(){
        return '
          <center>
          <br>
          <br>
          '._i18n_user_DATA_WAS_SUCCESSFULL_RECIEVED_.'
          <br>
          '._i18n_user_CLICK_ON_GO_TO_NEXT_STEP_FOR_DISPLAY_ORDER_.'
          <br>
          <br>
          <input type="hidden" name="User_Operation" id="User_Operation">
          <a href="'._URL_INACTIVE_ADDR_.'"
            onclick="classOrder();"
          >
            '._i18n_user_GO_TO_NEXT_STEP_.'
          </a>
          <br>
          <br>
          </center>
        ';
    }

    
    public function getInsertSuccessfullInfo(){
        return '
          <center>
          <br>
          <br>
          '._i18n_user_YOUR_ACCOUNT_WAS_SUCCESSFULL_CREATED_.'
          <br>
          '._i18n_user_WE_DO_YOUR_LOGIN_AUTOMATICALLY_AND_YOU_CAN_USE_YOUR_ACCOUNT_IMMEDIATELY_AFTER_CLOSE_THIS_WINDOW_.'
          <br>
          <br>
          '._i18n_user_YOU_CAN_CLOSE_THIS_DIALOG_.'
          <br>
          <br> 
          <input type="hidden" name="User_Operation" id="User_Operation">         
          <a href="'._URL_INACTIVE_ADDR_.'"
            onclick="
              document.getElementById(\'shadow_container\').style.visibility=\'hidden\';
              document.getElementById(\'User_Operation\').value = \'jsd_UO_CloseWindow\';
              classUsers();
            "
          >
            '._i18n_user_CLOSE_.'
          </a>
          <br>
          <br>
          </center>
        ';
    }
    
    public function getRegisterForm(){
        return '
          <center>
          <br>
          <br>
          <table class="css_default_table">
            <tr>
              <td>
                '._i18n_user_ORGANIZATION_NAME_.'
              </td>
              <td>
                <input type="text" name="User_RegisterForm_U_Organisation" id="User_RegisterForm_U_Organisation">
              </td>
            </tr>
            <tr>
              <td>
                '._i18n_user_FIRST_NAME_.' *
              </td>
              <td>
                <input type="text" name="User_RegisterForm_U_Name" id="User_RegisterForm_U_Name">
              </td>
            </tr>
            <tr>
              <td>
                '._i18n_user_LAST_NAME_.' *
              </td>
              <td>
                <input type="text" name="User_RegisterForm_U_Surname" id="User_RegisterForm_U_Surname">
              </td>
            </tr>
            <tr>
              <td>
                '._i18n_user_CITY_.' *
              </td>
              <td>
                <input type="text" name="User_RegisterForm_U_City" id="User_RegisterForm_U_City">
              </td>
            </tr>
            <tr>
              <td>
                '._i18n_user_STREET_.' *
              </td>
              <td>
                <input type="text" name="User_RegisterForm_U_Street" id="User_RegisterForm_U_Street">
              </td>
            </tr>
            <tr>
              <td>
                '._i18n_user_POST_ID_.' *
              </td>
              <td>
                <input type="text" name="User_RegisterForm_U_PostID" id="User_RegisterForm_U_PostID">
              </td>
            </tr>
            <tr>
              <td>
                '._i18n_user_MOBILE_NUMBER_.' **
              </td>
              <td>
                <input type="text" name="User_RegisterForm_U_Mobile" id="User_RegisterForm_U_Mobile">
              </td>
            </tr>
            <tr>
              <td>
                '._i18n_user_TELEPHONE_NUMBER_.' **
              </td>
              <td>
                <input type="text" name="User_RegisterForm_U_Phone" id="User_RegisterForm_U_Phone">
              </td>
            </tr>
            <tr>
              <td>
                '._i18n_user_EMAIL_.'
              </td>
              <td>
                <input type="text" name="User_RegisterForm_U_Email" id="User_RegisterForm_U_Email">
              </td>
            </tr>
            <tr>
              <td>
                '._i18n_user_DATE_OF_BIRTH_.'
              </td>
              <td>
                <input type="text" name="User_RegisterForm_U_BirthDate" id="User_RegisterForm_U_BirthDate">
              </td>
            </tr>
            <tr>
              <td>
                '._i18n_user_ORGANIZATION_IDENTIFICATION_NO_.'
              </td>
              <td>
                <input type="text" name="User_RegisterForm_U_ICO" id="User_RegisterForm_U_ICO">
              </td>
            </tr>
            <tr>
              <td>
                '._i18n_user_TAX_IDENTIFICATION_NO_.'
              </td>
              <td>
                <input type="text" name="User_RegisterForm_U_DIC" id="User_RegisterForm_U_DIC">
              </td>
            </tr>
            <tr>
              <td>
                <br><br>'._i18n_user_LOGIN_NAME_.' *
              </td>
              <td>
                <br><br><input type="text" name="User_RegisterForm_U_Nick" id="User_RegisterForm_U_Nick">
              </td>
            </tr>
            <tr>
              <td>
                '._i18n_user_PASSWORD_.'  *
              </td>
              <td>
                <input type="password" name="User_RegisterForm_U_Passwd" id="User_RegisterForm_U_Passwd">
              </td>
            </tr>
            <tr>
              <td>
                '._i18n_user_PASSWORD_AGAIN_.' *
              </td>
              <td>
                <input type="password" name="User_RegisterForm_U_Passwd2" id="User_RegisterForm_U_Passwd2">
              </td>
            </tr>
            <tr>
              <td>
                <br><br>
                <input type="hidden" name="User_Operation" id="User_Operation">  
                <a href="'._URL_INACTIVE_ADDR_.'"
                    '.$this->_Follow->getJS(_i18n_user_IT_CREATE_NEW_ACCOUNT_USING_ENTERED_DATA_).'
                    onclick="
                      '.$this->_Follow->getClosingJS().'
                      document.getElementById(\'User_Operation\').value = \'jsd_UO_RegisterUser\';
                      classUsers();
                    "
                  >
                    '._i18n_user_REGISTER_ACCOUNT_.'
                  </a>
              </td>
              <td>
                <br><br>       
                <a href="'._URL_INACTIVE_ADDR_.'"                
                    onclick="
                      document.getElementById(\'shadow_container\').style.visibility=\'hidden\';
                      document.getElementById(\'User_Operation\').value = \'jsd_UO_CloseWindow\';
                      classUsers();
                    "
                >
                  '._i18n_user_CANCEL_.'
                </a>
              </td>
            </tr>
          </table>
          <br>
          <span 
              name="User_RegisterForm_Test_Result_Container" 
              id  ="User_RegisterForm_Test_Result_Container"
              style="font-size:12px; font-weight:bold; color:red;"
          ></span>
          <br>
            '._i18n_user_FIELDS_MARKED_BY_STAR_ARE_REQUIRED_.'<br>
            '._i18n_user_YOU_HAVE_TO_TYPE_LEAST_ONE_OF_FIELDS_MARKED_BY_2STARS_.'<br>
            <b>'._i18n_user_YOU_AGREE_WITH_BUSSINESS_CONDITIONS_AND_YOU_DECLARE_THAT_ALL_FILLED_FIELDS_ARE_RIGHT_BY_CLICK_ON_REGISTER_BUTTON_.'</b>
          <br><br>
          </center>
        ';
    }
    
    public function getUserInfoUpdateForm($aasValues){
        return '
          <center>
          <br>
          <br>
          <table class="css_default_table">
            <tr>
              <td>
                '._i18n_user_ORGANIZATION_NAME_.'
              </td>
              <td>
                <input type="text" value="'.$aasValues['U_Organisation'].'" name="User_RegisterForm_U_Organisation" id="User_RegisterForm_U_Organisation">
              </td>
            </tr>
            <tr>
              <td>
                '._i18n_user_FIRST_NAME_.' *
              </td>
              <td>
                <input type="text" value="'.$aasValues['U_Name'].'" name="User_RegisterForm_U_Name" id="User_RegisterForm_U_Name">
              </td>
            </tr>
            <tr>
              <td>
                '._i18n_user_LAST_NAME_.' *
              </td>
              <td>
                <input type="text" value="'.$aasValues['U_Surname'].'" name="User_RegisterForm_U_Surname" id="User_RegisterForm_U_Surname">
              </td>
            </tr>
            <tr>
              <td>
                '._i18n_user_CITY_.' *
              </td>
              <td>
                <input type="text" value="'.$aasValues['U_City'].'" name="User_RegisterForm_U_City" id="User_RegisterForm_U_City">
              </td>
            </tr>
            <tr>
              <td>
                '._i18n_user_STREET_.' *
              </td>
              <td>
                <input type="text" value="'.$aasValues['U_Street'].'" name="User_RegisterForm_U_Street" id="User_RegisterForm_U_Street">
              </td>
            </tr>
            <tr>
              <td>
                '._i18n_user_POST_ID_.' *
              </td>
              <td>
                <input type="text" value="'.$aasValues['U_PostID'].'" name="User_RegisterForm_U_PostID" id="User_RegisterForm_U_PostID">
              </td>
            </tr>
            <tr>
              <td>
                '._i18n_user_MOBILE_NUMBER_.' **
              </td>
              <td>
                <input type="text" value="'.$aasValues['U_Mobile'].'" name="User_RegisterForm_U_Mobile" id="User_RegisterForm_U_Mobile">
              </td>
            </tr>
            <tr>
              <td>
                '._i18n_user_TELEPHONE_NUMBER_.' **
              </td>
              <td>
                <input type="text" value="'.$aasValues['U_Phone'].'" name="User_RegisterForm_U_Phone" id="User_RegisterForm_U_Phone">
              </td>
            </tr>
            <tr>
              <td>
                '._i18n_user_EMAIL_.'
              </td>
              <td>
                <input type="text" value="'.$aasValues['U_Email'].'" name="User_RegisterForm_U_Email" id="User_RegisterForm_U_Email">
              </td>
            </tr>
            <tr>
              <td>
                '._i18n_user_DATE_OF_BIRTH_.'
              </td>
              <td>
                <input type="text" value="'.$aasValues['U_BirthDate'].'" name="User_RegisterForm_U_BirthDate" id="User_RegisterForm_U_BirthDate">
              </td>
            </tr>
            <tr>
              <td>
                '._i18n_user_ORGANIZATION_IDENTIFICATION_NO_.'
              </td>
              <td>
                <input type="text" value="'.$aasValues['U_ICO'].'" name="User_RegisterForm_U_ICO" id="User_RegisterForm_U_ICO">
              </td>
            </tr>
            <tr>
              <td>
                '._i18n_user_TAX_IDENTIFICATION_NO_.'
              </td>
              <td>
                <input type="text" value="'.$aasValues['U_DIC'].'" name="User_RegisterForm_U_DIC" id="User_RegisterForm_U_DIC">
              </td>
            </tr>
            <tr>
              <td>
                <br><br>
                <input type="hidden" name="User_Operation" id="User_Operation">  
                <a href="'._URL_INACTIVE_ADDR_.'"
                    onclick="
                      document.getElementById(\'User_Operation\').value = \'jsd_UO_UpdateUserInfo\';
                      classUsers();
                    "
                  >
                    '._i18n_user_SAVE_CHANGES_.'
                  </a>
              </td>
              <td>
                <br><br>       
                <a href="'._URL_INACTIVE_ADDR_.'"
                onclick="
                  document.getElementById(\'shadow_container\').style.visibility=\'hidden\';
                  document.getElementById(\'User_Operation\').value = \'jsd_UO_CloseWindow\';
                  classUsers();
                "
                >
                  '._i18n_user_CANCEL_.'
                </a>
              </td>
            </tr>
          </table>
          <br>
          <span 
              name="User_RegisterForm_Test_Result_Container" 
              id  ="User_RegisterForm_Test_Result_Container"
              style="font-size:12px; font-weight:bold; color:red;"
          ></span>
          <br>
            '._i18n_user_FIELDS_MARKED_BY_STAR_ARE_REQUIRED_.'<br>
            '._i18n_user_YOU_HAVE_TO_TYPE_LEAST_ONE_OF_FIELDS_MARKED_BY_2STARS_.'<br>
            <b>'._i18n_user_YOU_AGREE_WITH_BUSSINESS_CONDITIONS_AND_YOU_DECLARE_THAT_ALL_FILLED_FIELDS_ARE_RIGHT_BY_CLICK_ON_SAVE_CHANGES_BUTTON_.'</b>
          <br><br>
          </center>
        ';
    }
    public function getUserPasswordUpdateForm(){
        return '
          <center>
          <br>
          <br>
          <table class="css_default_table">
            <tr>
              <td>
                '._i18n_user_ACTUAL_PASSWORD_.' *
              </td>
              <td>
                <input type="password" value="" name="User_RegisterForm_U_OldPassword" id="User_RegisterForm_U_OldPassword">
              </td>
            </tr>
            <tr>
              <td>
                '._i18n_user_NEW_PASSWORD_.' *
              </td>
              <td>
                <input type="password" value="" name="User_RegisterForm_U_NewPassword" id="User_RegisterForm_U_NewPassword">
              </td>
            </tr>
            <tr>
              <td>
                '._i18n_user_NEW_PASSWORD_AGAIN_.' *
              </td>
              <td>
                <input type="password" value="" name="User_RegisterForm_U_NewPassword2" id="User_RegisterForm_U_NewPassword2">
              </td>
            </tr>
            <tr>
              <td>
                <br><br>
                <input type="hidden" name="User_Operation" id="User_Operation">  
                <a href="'._URL_INACTIVE_ADDR_.'"
                    onclick="
                      document.getElementById(\'User_Operation\').value = \'jsd_UO_UpdateUserPassword\';
                      classUsers();
                    "
                  >
                    '._i18n_user_SAVE_CHANGES_.'
                  </a>
              </td>
              <td>
                <br><br>       
                <a href="'._URL_INACTIVE_ADDR_.'"
                onclick="
                  document.getElementById(\'shadow_container\').style.visibility=\'hidden\';
                  document.getElementById(\'User_Operation\').value = \'jsd_UO_CloseWindow\';
                  classUsers();
                "
                >
                  '._i18n_user_CANCEL_.'
                </a>
              </td>
            </tr>
          </table>
          <br>
          <span 
              name="User_RegisterForm_Test_Result_Container" 
              id  ="User_RegisterForm_Test_Result_Container"
              style="font-size:12px; font-weight:bold; color:red;"
          ></span>
          <br>
            '._i18n_user_FIELDS_MARKED_BY_STAR_ARE_REQUIRED_.'<br>
          <br><br>
          </center>
        ';
    }

    public function getForgottenPasswdForm(){
        return '
          <center>
          <br>
          <br>
            '._i18n_user_THIS_FUNCTION_SEND_NEW_PASSWORD_TO_REGISTERED_EMAIL.'
          <br>
          <br>
          <input type="hidden" name="User_Operation" id="User_Operation">
          <table class="css_default_table">
            <tr>
              <td>
                '._i18n_user_LOGIN_NAME_.'
              </td>
              <td>
                <input type="text" name="User_RegisterForm_U_Nick" id="User_RegisterForm_U_Nick">
              </td>
            </tr>
          </table>
          <span style="color:red;" name="User_ForgottenPasswdForm_ResultContainer" id="User_ForgottenPasswdForm_ResultContainer"></span>
          <br>
          <br>                
                <a href="'._URL_INACTIVE_ADDR_.'"
                    onclick="
                      document.getElementById(\'User_Operation\').value = \'jsd_UO_ForgottenPassword_SentEmail\';
                      classUsers();
                    "
                  >
                    '._i18n_user_SEND_PASSWORD.'
                  </a>
          <br>
          <br>
          </center>
        ';
    }

    public function getForgottenPasswd_Email_Successfull_Sent(){
        return '
          <center>
          <br>
          <br>
            <b>'._i18n_user_MESSAGE_WITH_NEW_PASSWORD_AND_URL_WHICH_CONFIRM_NEW_PASSWORD_WAS_SENT_TO_YOUR_EMAIL_ACCOUNT_.'</b>
          <br>
            '._i18n_user_OLD_PASSWORD_WILL_BE_ACTIVE_WHEN_YOU_CLICK_ON_URL_IN_MESSAGE_.'
          <br>
          <br>
          <br>
            '._i18n_user_PLEASE_CHECK_YOUR_EMAIL_ACCOUNT_AND_CONFIRM_NEW_PASSWORD_WITH_CLICK_ON_URL_.'
          <br>          
          <br>
          <br>
                <a href="'._URL_INACTIVE_ADDR_.'"
                onclick="
                  document.getElementById(\'shadow_container\').style.visibility=\'hidden\';
                  document.getElementById(\'User_Operation\').value = \'jsd_UO_CloseWindow\';
                  classUsers();
                "
                >
                  '._i18n_user_CLOSE_.'
                </a>
          <br>
          <br>
          </center>
        ';
    }

    public function getForgottenPasswd_Email_Body($sNewPassword, $sUrl, $sIP, $sDate){
        return '
            <br>
            <b>'._i18n_user_YOU_HAVE_SENT_DEMAND_TO_CHANGE_PASSWORD_IN_ESHOP_.'</b>
            <br>
            '._i18n_user_OLD_PASSWORD_WILL_BE_ACTIVE_WHEN_YOU_CLICK_ON_URL_IN_MESSAGE_.'
            <br>
            <u>'._i18n_user_IF_YOU_DIDNT_SEND_THIS_DEMAND_PLEASE_DELETE_THIS_MESSAGE_NOW_AND_DONT_CLICK_ON_LINK_DOWN_.'</u>
            <br>
            <br>
            '._i18n_user_YOUR_NEW_PASSWORD_IS_.': '.$sNewPassword.'
            <br>
            <br>
            '._i18n_user_THE_PASSWORD_WILL_BE_ACTIVE_AFTER_CLICK_ON_NEXT_LINK_.':
            <br>
            <a href="'.$sUrl.'">'.$sUrl.'</a>
            <br>
            <br>
            <br>
            '._i18n_user_IP_ADDRESS_OF_SENDER_.': '.$sIP.'
            <br>
            '._i18n_user_DATE_AND_TIME_.': '.$sDate.'
            <br>
            '._i18n_user_THIS_IS_AUTOMATICALLY_GENERATED_MESSAGE_PLEASE_DONT_REPLY.'
            
            
        ';
    }

    public function getUserFormToMakeOrderWithoutRegistring(){
        $_US = new classUsersService();
        $aasUInfo = $_US->getUnloggedUserInfo();
        return '
          <center>
          <br>
          <br>
          <table class="css_default_table">
            <tr>
              <td>
                '._i18n_user_ORGANIZATION_NAME_.'
              </td>
              <td>
                <input type="text" value="'.$aasUInfo['U_Organisation'].'" name="User_RegisterForm_U_Organisation" id="User_RegisterForm_U_Organisation">
              </td>
            </tr>
            <tr>
              <td>
                '._i18n_user_FIRST_NAME_.' *
              </td>
              <td>
                <input type="text" value="'.$aasUInfo['U_Name'].'" name="User_RegisterForm_U_Name" id="User_RegisterForm_U_Name">
              </td>
            </tr>
            <tr>
              <td>
                '._i18n_user_LAST_NAME_.' *
              </td>
              <td>
                <input type="text" value="'.$aasUInfo['U_Surname'].'" name="User_RegisterForm_U_Surname" id="User_RegisterForm_U_Surname">
              </td>
            </tr>
            <tr>
              <td>
                '._i18n_user_CITY_.' *
              </td>
              <td>
                <input type="text" value="'.$aasUInfo['U_City'].'" name="User_RegisterForm_U_City" id="User_RegisterForm_U_City">
              </td>
            </tr>
            <tr>
              <td>
                '._i18n_user_STREET_.' *
              </td>
              <td>
                <input type="text" value="'.$aasUInfo['U_Street'].'" name="User_RegisterForm_U_Street" id="User_RegisterForm_U_Street">
              </td>
            </tr>
            <tr>
              <td>
                '._i18n_user_POST_ID_.' *
              </td>
              <td>
                <input type="text" value="'.$aasUInfo['U_PostID'].'" name="User_RegisterForm_U_PostID" id="User_RegisterForm_U_PostID">
              </td>
            </tr>
            <tr>
              <td>
                '._i18n_user_MOBILE_NUMBER_.' **
              </td>
              <td>
                <input type="text" value="'.$aasUInfo['U_Mobile'].'" name="User_RegisterForm_U_Mobile" id="User_RegisterForm_U_Mobile">
              </td>
            </tr>
            <tr>
              <td>
                '._i18n_user_TELEPHONE_NUMBER_.' **
              </td>
              <td>
                <input type="text" value="'.$aasUInfo['U_Phone'].'" name="User_RegisterForm_U_Phone" id="User_RegisterForm_U_Phone">
              </td>
            </tr>
            <tr>
              <td>
                '._i18n_user_EMAIL_.'
              </td>
              <td>
                <input type="text" value="'.$aasUInfo['U_Email'].'" name="User_RegisterForm_U_Email" id="User_RegisterForm_U_Email">
              </td>
            </tr>
            <tr>
              <td>
                '._i18n_user_DATE_OF_BIRTH_.'
              </td>
              <td>
                <input type="text" value="'.$aasUInfo['U_BirthDate'].'" name="User_RegisterForm_U_BirthDate" id="User_RegisterForm_U_BirthDate">
              </td>
            </tr>
            <tr>
              <td>
                '._i18n_user_ORGANIZATION_IDENTIFICATION_NO_.'
              </td>
              <td>
                <input type="text" value="'.$aasUInfo['U_ICO'].'" name="User_RegisterForm_U_ICO" id="User_RegisterForm_U_ICO">
              </td>
            </tr>
            <tr>
              <td>
                '._i18n_user_TAX_IDENTIFICATION_NO_.'
              </td>
              <td>
                <input type="text" value="'.$aasUInfo['U_DIC'].'" name="User_RegisterForm_U_DIC" id="User_RegisterForm_U_DIC">
              </td>
            </tr>
            <tr>
              <td>
                <br><br>
                <input type="hidden" name="User_Operation" id="User_Operation">
                <a href="'._URL_INACTIVE_ADDR_.'"
                    onclick="
                      document.getElementById(\'User_Operation\').value = \'jsd_UO_InsertDataToSessToMakeOrderWithoutRegistring\';
                      classUsers();
                    "
                  >
                    '._i18n_user_GO_TO_NEXT_STEP_.'
                  </a>
              </td>
              <td>
                <br><br>
                <a href="'._URL_INACTIVE_ADDR_.'"
                onclick="
                  document.getElementById(\'shadow_container\').style.visibility=\'hidden\';
                  document.getElementById(\'User_Operation\').value = \'jsd_UO_CloseWindow\';
                  classUsers();
                "
                >
                  '._i18n_user_CANCEL_.'
                </a>
              </td>
            </tr>
          </table>
          <br>
          <span
              name="User_RegisterForm_Test_Result_Container"
              id  ="User_RegisterForm_Test_Result_Container"
              style="font-size:12px; font-weight:bold; color:red;"
          ></span>
          <br>
            '._i18n_user_FIELDS_MARKED_BY_STAR_ARE_REQUIRED_.'<br>
            '._i18n_user_YOU_HAVE_TO_TYPE_LEAST_ONE_OF_FIELDS_MARKED_BY_2STARS_.'<br>
            <b>'._i18n_user_YOU_AGREE_WITH_BUSSINESS_CONDITIONS_AND_YOU_DECLARE_THAT_ALL_FILLED_FIELDS_ARE_RIGHT_BY_CLICK_ON_GO_TO_NEXT_STEP_BUTTON_.'</b>
          <br><br>
          </center>
        ';
    }

    public function getUsersDataSavedInSession(){
        $_US = new classUsersService();
        $aasUInfo = $_US->getUnloggedUserInfo();

        if(trim($aasUInfo['U_ICO'])!='')    $U_ICO ='('._i18n_user_ORGANIZATION_IDENTIFICATION_NO_.') '.$aasUInfo['U_ICO']; else $U_ICO='';
        if(trim($aasUInfo['U_DIC'])!='')    $U_DIC ='('._i18n_user_TAX_IDENTIFICATION_NO_.') '.$aasUInfo['U_DIC']; else $U_DIC='';
        if(trim($aasUInfo['U_Mobile'])!='') $U_Mobile ='('._i18n_user_MOBILE_NUMBER_.') '.$aasUInfo['U_Mobile']; else $U_Mobile='';
        if(trim($aasUInfo['U_Phone'])!='')  $U_Phone ='('._i18n_user_TELEPHONE_NUMBER_.') '.$aasUInfo['U_Phone']; else $U_Phone='';
        if(trim($aasUInfo['U_Email'])!='')  $U_Email ='('._i18n_user_EMAIL_.') '.$aasUInfo['U_Email']; else $U_Email='';

        return '
          '.$aasUInfo['U_Organisation'].'
          <br>
          '.$U_ICO.' '.$U_DIC.'
          <br>
          '.$aasUInfo['U_Name'].' '.$aasUInfo['U_Surname'].'<br>
          '.$aasUInfo['U_Street'].'<br>
          '.$aasUInfo['U_PostID'].' '.$aasUInfo['U_City'].'<br>
          <br>
          '.$U_Mobile.' '.$U_Phone.' '.$U_Email.'
          <br>
          <input type="hidden" name="User_Operation" id="User_Operation">
          <a href="'._URL_INACTIVE_ADDR_.'"
            onclick="
                document.getElementById(\'User_Operation\').value = \'jsd_UO_ShowFormToMAkeOrderWithoutRegistring\';
                classUsers();
            "
          >
            '._i18n_user_UPDATE_INSERTED_DATA_.'
          </a>
          <br>
          <br>
        ';
    }
}
?>
